import 'package:xin_he/generated/json/base/json_convert_content.dart';
import 'package:xin_he/page/home/model/xin_he_goods_item_detail_entity.dart';

XinHeGoodsItemDetailEntity $XinHeGoodsItemDetailEntityFromJson(Map<String, dynamic> json) {
	final XinHeGoodsItemDetailEntity xinHeGoodsItemDetailEntity = XinHeGoodsItemDetailEntity();
	final int? id = jsonConvert.convert<int>(json['id']);
	if (id != null) {
		xinHeGoodsItemDetailEntity.id = id;
	}
	final int? fSellerUserId = jsonConvert.convert<int>(json['fSellerUserId']);
	if (fSellerUserId != null) {
		xinHeGoodsItemDetailEntity.fSellerUserId = fSellerUserId;
	}
	final int? fGoodsTypeId = jsonConvert.convert<int>(json['fGoodsTypeId']);
	if (fGoodsTypeId != null) {
		xinHeGoodsItemDetailEntity.fGoodsTypeId = fGoodsTypeId;
	}
	final int? fGoodsZoneTypeId = jsonConvert.convert<int>(json['fGoodsZoneTypeId']);
	if (fGoodsZoneTypeId != null) {
		xinHeGoodsItemDetailEntity.fGoodsZoneTypeId = fGoodsZoneTypeId;
	}
	final String? name = jsonConvert.convert<String>(json['name']);
	if (name != null) {
		xinHeGoodsItemDetailEntity.name = name;
	}
	final String? iconPath = jsonConvert.convert<String>(json['iconPath']);
	if (iconPath != null) {
		xinHeGoodsItemDetailEntity.iconPath = iconPath;
	}
	final String? dis = jsonConvert.convert<String>(json['dis']);
	if (dis != null) {
		xinHeGoodsItemDetailEntity.dis = dis;
	}
	final double? price = jsonConvert.convert<double>(json['price']);
	if (price != null) {
		xinHeGoodsItemDetailEntity.price = price;
	}
	final int? priceId = jsonConvert.convert<int>(json['priceId']);
	if (priceId != null) {
		xinHeGoodsItemDetailEntity.priceId = priceId;
	}
	final String? type = jsonConvert.convert<String>(json['type']);
	if (type != null) {
		xinHeGoodsItemDetailEntity.type = type;
	}
	final String? sendAddress = jsonConvert.convert<String>(json['sendAddress']);
	if (sendAddress != null) {
		xinHeGoodsItemDetailEntity.sendAddress = sendAddress;
	}
	final double? freightFee = jsonConvert.convert<double>(json['freightFee']);
	if (freightFee != null) {
		xinHeGoodsItemDetailEntity.freightFee = freightFee;
	}
	final double? spikePrice = jsonConvert.convert<double>(json['spikePrice']);
	if (spikePrice != null) {
		xinHeGoodsItemDetailEntity.spikePrice = spikePrice;
	}
	final double? groupPurchasePrice = jsonConvert.convert<double>(json['groupPurchasePrice']);
	if (groupPurchasePrice != null) {
		xinHeGoodsItemDetailEntity.groupPurchasePrice = groupPurchasePrice;
	}
	final dynamic isHotSales = jsonConvert.convert<dynamic>(json['isHotSales']);
	if (isHotSales != null) {
		xinHeGoodsItemDetailEntity.isHotSales = isHotSales;
	}
	final dynamic goodsZoneType = jsonConvert.convert<dynamic>(json['goodsZoneType']);
	if (goodsZoneType != null) {
		xinHeGoodsItemDetailEntity.goodsZoneType = goodsZoneType;
	}
	final String? remark = jsonConvert.convert<String>(json['remark']);
	if (remark != null) {
		xinHeGoodsItemDetailEntity.remark = remark;
	}
	final String? iconPath2 = jsonConvert.convert<String>(json['iconPath2']);
	if (iconPath2 != null) {
		xinHeGoodsItemDetailEntity.iconPath2 = iconPath2;
	}
	return xinHeGoodsItemDetailEntity;
}

Map<String, dynamic> $XinHeGoodsItemDetailEntityToJson(XinHeGoodsItemDetailEntity entity) {
	final Map<String, dynamic> data = <String, dynamic>{};
	data['id'] = entity.id;
	data['fSellerUserId'] = entity.fSellerUserId;
	data['fGoodsTypeId'] = entity.fGoodsTypeId;
	data['fGoodsZoneTypeId'] = entity.fGoodsZoneTypeId;
	data['name'] = entity.name;
	data['iconPath'] = entity.iconPath;
	data['dis'] = entity.dis;
	data['price'] = entity.price;
	data['priceId'] = entity.priceId;
	data['type'] = entity.type;
	data['sendAddress'] = entity.sendAddress;
	data['freightFee'] = entity.freightFee;
	data['spikePrice'] = entity.spikePrice;
	data['groupPurchasePrice'] = entity.groupPurchasePrice;
	data['isHotSales'] = entity.isHotSales;
	data['goodsZoneType'] = entity.goodsZoneType;
	data['remark'] = entity.remark;
	data['iconPath2'] = entity.iconPath2;
	return data;
}